<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@include file="header.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>回复用户咨询</title>
<link rel="stylesheet" type="text/css" href="common.css">
<style>
.form-invalid {
background-color:#FFFFFF;
/*background-image:url(../images/invalid_line.gif);*/
border-color:#CC3300;
}
</style>
</head>
<body>
<script>
	function check() {
		var t1 = document.getElementById("reponsecontent");
		var regC = /[^ -~]+/g;
		var regE = /\D+/g;
		var str = t1.value;
		
		if (regC.test(str)){
		    t1.value = t1.value.substr(0,250);
		}
		if(regE.test(str)){
		    t1.value = t1.value.substr(0,500);
		}
	}
</script> 
<div align="center">回复客户咨询</div>
<form method="post" action="reponseAsk.action" id="reponseAskForm">

<table width="98%" border="0" cellpadding="3" cellspacing="1"  bgcolor="#FFFFFF" align="center">
	<tr>
		<td class="tdbgcolor1"  width="50">客户咨询</td>
		<td class="tdbgcolor1" >${askreponse.askcontent }</td>
	</tr>
	<tr>
		<td class="tdbgcolor2" >回复:</td>
		<td class="tdbgcolor2">
		
		<textarea name="reponsecontent" rows="8" cols="20" id="reponsecontent" style="width:98%;" onkeyup="check();">${askreponse.reponsecontent }</textarea>
		</td>
	</tr>
 
	<tr>

		<td colspan="2" class="tdbgcolor1">
			<input type="submit" value="Save"/>&nbsp;
			<input	type="button" value="reset" />
			<input type="hidden" id="askreponseRecordId" name="askreponseRecordId"  value="${askreponseRecordId }"/>
			&nbsp;
			<input	type="button" value="返回"  onclick="javascript:window.history.back();" />
			</td>
</table>
</form>
</body>
</html>
